package com.megaspacevr.mapper;

import com.megaspacevr.entity.AdminUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 管理员表 Mapper 接口
 * </p>
 *
 * @author yezi
 * @since 2025-06-17
 */
@Mapper
public interface AdminUserMapper extends BaseMapper<AdminUser> {

    //根据账号去数据库进行查找
    @Select("select * from admin_user where username=#{username}")
    AdminUser findByUsername(String username);
}
